#include<stdio.h>
#include<math.h>

int main() {
	double a, b, c, x1, x2, x3;

	scanf("%lf%lf%lf", &a, &b, &c);
	if (a == 0 && b == 0)
		printf("Not an equation");
	if (a == 0 && b != 0)
		printf("%.2lf", -c / b);

	if (a != 0)
	{
		if (b * b - 4 * a * c >= 0)
		{
			x1 = (-b + sqrt(b * b - 4 * a * c)) / (2 * a);
			x2 = (-b - sqrt(b * b - 4 * a * c)) / (2 * a);
			if (x1 >= x2)
				x1 = x1, x2 = x2;
			else
				x3 = x1, x1 = x2, x2 = x3;
			printf("%.2lf %.2lf", x1, x2);
		}
		if (b * b - 4 * a * c < 0)
		{
			double x = sqrt(4 * a * c - b * b) / (2 * a);
			if(x>0)
				printf("%0.2lf+%0.2lfi\n%0.2lf-%0.2lfi", -b / (2.0 * a), x, -b / (2.0 * a), x);
			else
				printf("%0.2lf+%0.2lfi\n%0.2lf-%0.2lfi", -b / (2.0 * a), -x, -b / (2.0 * a), -x);
        }
    }
            return 0;

}